package com.corpcredit.model;

// Generated Jul 22, 2008 11:56:54 PM by Hibernate Tools 3.2.0.CR1

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Version;

/**
 * Jrjbxx generated by hbm2java
 */
@Entity
@Table(name = "jrjbxx")
public class Jrjbxx implements java.io.Serializable
{

    private Long id;
    private int version;
    private Jbqk jbqk;
    private String username;
    private String operation;
    private Date optdate;
    private String yhmc;
    private BigDecimal sxed;
    private String rgje;
    private Double dqdkqhl;
    private BigDecimal dqxycfl;
    private BigDecimal dklxchl;
    private String dkfxfl;
    private Short khfl;
    private Date jzrq;

    public Jrjbxx()
    {
    }

    public Jrjbxx( Long id, String yhmc )
    {
        this.id = id;
        this.yhmc = yhmc;
    }

    public Jrjbxx( Long id,
                   Jbqk jbqk,
                   String username,
                   String operation,
                   Date optdate,
                   String yhmc,
                   BigDecimal sxed,
                   String rgje,
                   Double dqdkqhl,
                   BigDecimal dqxycfl,
                   BigDecimal dklxchl,
                   String dkfxfl,
                   Short khfl,
                   Date jzrq)
    {
        this.id = id;
        this.jbqk = jbqk;
        this.username = username;
        this.operation = operation;
        this.optdate = optdate;
        this.yhmc = yhmc;
        this.sxed = sxed;
        this.rgje = rgje;
        this.dqdkqhl = dqdkqhl;
        this.dqxycfl = dqxycfl;
        this.dklxchl = dklxchl;
        this.dkfxfl = dkfxfl;
        this.khfl = khfl;
        this.jzrq = jzrq;
    }

    @Id
    @Column(name = "ID", unique = true, nullable = false)
    @GeneratedValue(strategy=GenerationType.AUTO)
    public Long getId()
    {
        return this.id;
    }

    public void setId( Long id )
    {
        this.id = id;
    }

    @Version
    @Column(name = "version", nullable = false)
    public int getVersion()
    {
        return this.version;
    }

    public void setVersion( int version )
    {
        this.version = version;
    }

    @OneToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "jbq_ID")
    public Jbqk getJbqk()
    {
        return this.jbqk;
    }

    public void setJbqk( Jbqk jbqk )
    {
        this.jbqk = jbqk;
    }

    @Column(name = "username", length = 50)
    public String getUsername()
    {
        return this.username;
    }

    public void setUsername( String username )
    {
        this.username = username;
    }

    @Column(name = "operation", length = 20)
    public String getOperation()
    {
        return this.operation;
    }

    public void setOperation( String operation )
    {
        this.operation = operation;
    }

    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "optdate", length = 23)
    public Date getOptdate()
    {
        return this.optdate;
    }

    public void setOptdate( Date optdate )
    {
        this.optdate = optdate;
    }

    @Column(name = "yhmc", nullable = false, length = 50)
    public String getYhmc()
    {
        return this.yhmc;
    }

    public void setYhmc( String yhmc )
    {
        this.yhmc = yhmc;
    }

    @Column(name = "sxed", precision = 18)
    public BigDecimal getSxed()
    {
        return this.sxed;
    }

    public void setSxed( BigDecimal sxed )
    {
        this.sxed = sxed;
    }

    @Column(name = "rgje", length = 30)
    public String getRgje()
    {
        return this.rgje;
    }

    public void setRgje( String rgje )
    {
        this.rgje = rgje;
    }

    @Column(name = "dqdkqhl", precision = 53, scale = 0)
    public Double getDqdkqhl()
    {
        return this.dqdkqhl;
    }

    public void setDqdkqhl( Double dqdkqhl )
    {
        this.dqdkqhl = dqdkqhl;
    }

    @Column(name = "dqxycfl", precision = 18)
    public BigDecimal getDqxycfl()
    {
        return this.dqxycfl;
    }

    public void setDqxycfl( BigDecimal dqxycfl )
    {
        this.dqxycfl = dqxycfl;
    }

    @Column(name = "dklxchl", precision = 18)
    public BigDecimal getDklxchl()
    {
        return this.dklxchl;
    }

    public void setDklxchl( BigDecimal dklxchl )
    {
        this.dklxchl = dklxchl;
    }

    @Column(name = "dkfxfl", length = 20)
    public String getDkfxfl()
    {
        return this.dkfxfl;
    }

    public void setDkfxfl( String dkfxfl )
    {
        this.dkfxfl = dkfxfl;
    }

    @Column(name = "khfl")
    public Short getKhfl()
    {
        return this.khfl;
    }

    public void setKhfl( Short khfl )
    {
        this.khfl = khfl;
    }

    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "jzrq", length = 23)
    public Date getJzrq()
    {
        return this.jzrq;
    }

    public void setJzrq( Date jzrq )
    {
        this.jzrq = jzrq;
    }
}
